package com.engine4cloud.tdf.supervision.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.List;

@Data
@Schema(description = "评估结果-请求对象")
public class DcpgEvaluateDTO implements Serializable {
    /**
     * 调查评估编号
     */
    @Schema(description = "调查评估编号", example = "123456789")
    @NotBlank(message = "调查评估编号不能为空")
    private String dcpgbh;

    /**
     * 调查结果说明
     */
    @Schema(description = "调查结果说明", example = "该调查人员......")
    @Length(max = 2000, message = "调查结果说明，最大不能超过2000个字符串")
    private String dcjgsm;

    /**
     * 调查评估意见书
     */
    @Schema(description = "调查评估意见书",
            example = """
                    [{"name": "张三.png",
                    "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg",
                    "fileName": "09468fc20f2544e28891a058858fdf58.jpeg",
                    "dir": "CORRECTOR_LEGAL_INSTRUMENT",
                    "fileSize": 1245678}
                    ]""")
    private List<JzdxFileDTO> evaluationList;
}
